package com.ywgt;

import com.ywgt.utils.IDWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan("com.ywgt.system.mapper")
@EnableSwagger2
@ServletComponentScan
public class SystemAdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(SystemAdminApplication.class,args);
    }
    @Bean
    public IDWorker getWorker(){
        return new IDWorker(1,1);
    }
}
